package dfbz.homework1;

public class Student{
    private String name;
    private int age;
    private String content;

    public Student() {
    }

    public Student(String name, int age, String content) {
        this.name = name;
        this.age = age;
        this.content = content;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public void eat(){
        System.out.println("年龄为"+this.age+"的"+this.name+"正在吃饭");
    }
    public void study(){
        System.out.println("年龄为"+this.age+"的"+this.name+"正在专心的听着"+this.content+"面向对象的知识.........");
    }

}
